<?php



class TicketlinesMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TicketlinesMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(TicketlinesPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(TicketlinesPeer::TABLE_NAME);
		$tMap->setPhpName('Ticketlines');
		$tMap->setClassname('Ticketlines');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('TICKET', 'Ticket', 'VARCHAR' , 'TICKETS', 'ID', true, 255);

		$tMap->addPrimaryKey('LINE', 'Line', 'INTEGER', true, 11);

		$tMap->addForeignKey('PRODUCT', 'Product', 'VARCHAR', 'PRODUCTS', 'ID', false, 255);

		$tMap->addColumn('UNITS', 'Units', 'DOUBLE', true, null);

		$tMap->addColumn('PRICE', 'Price', 'DOUBLE', true, null);

		$tMap->addForeignKey('TAXID', 'Taxid', 'VARCHAR', 'TAXES', 'ID', true, 255);

		$tMap->addColumn('ATTRIBUTES', 'Attributes', 'BLOB', false, null);

	} 
} 